package pattern19.barbecue;

/**
 * 抽象的命令类
 *
 * @author wdl
 */
public abstract class BaseCommand {
    protected Barbecuer receiver;

    /**
     * 抽象命令类需要知道命令的接收者
     * @param receiver 命令的接收者
     */
    public BaseCommand(Barbecuer receiver){
        this.receiver=receiver;
    }

    /**
     * 执行命令
     */
    abstract public void executeCommand();
}
